YAHOO.namespace('Tesis.dialog');

YAHOO.Tesis.dialog.Roles = function(elContainer, url, messages, handlers) {
    this.messages = messages;
    this.handlers = handlers;
    YAHOO.Tesis.dialog.Roles.superclass.constructor.call(this, elContainer, this.construirConfig());
    // este dialog no usa callback
    // this.callback = { success: this.handlers.success, failure: this.handlers.failure };
    this.setBody('<iframe frameborder="0" src="' + url + '" width="100%" height="100%"/>');
    this.render();
};

YAHOO.lang.extend(YAHOO.Tesis.dialog.Roles, YAHOO.widget.Dialog, {
    construirConfig: function() {
        return {
            width: '700px', height: '400px',
            modal: true, fixedcenter: true,
            visible: false, constraintoviewport: true
        };
    }
});/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


